home *** CD-ROM | disk | FTP | other *** search
- global gFieldTop, gchaptertextheight, theQTMovie, gMoovOutTime, gPauseMode, theBlitPict, grectlist, gNewEnter, gAfterClick, gcurrlessonnumber, gcurrchapternumber, objCapturePict, onIBM, glessonnumber
-
- on exitFrame
- if gPauseMode then
- if rollOver(6) then
- set theMouseLine to (mouseV() - gFieldTop) / gchaptertextheight
- if (theMouseLine <= glessonnumber) and (theMouseLine > 0) then
- if gNewEnter then
- blitPictInitScreen(theBlitPict, getAt(grectlist, 3))
- blitPictDrawObj(theBlitPict, the srcrect of theBlitPict, the POINTER of objCapturePict, the srcrect of objCapturePict, "copy")
- blitPictDispose(theBlitPict)
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- set the visible of sprite 8 to 1
- updateStage()
- showpreview(theMouseLine)
- set gNewEnter to 0
- else
- if gAfterClick then
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- updateStage()
- else
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- updateStage()
- showpreview(theMouseLine)
- end if
- end if
- end if
- else
- if gNewEnter = 0 then
- if gAfterClick then
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- set gAfterClick to 0
- else
- blitPictDrawScreen(objCapturePict, the srcrect of objCapturePict, getAt(grectlist, 3), "copy", 0, 0)
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- end if
- end if
- end if
- else
- if gAfterClick then
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- set gAfterClick to 0
- end if
- if QTGetCurrtime(theQTMovie) < gMoovOutTime then
- QTIdle(theQTMovie)
- else
- callbackplay()
- end if
- end if
- go(the frame)
- end
-
- on idle
- if gPauseMode then
- if rollOver(6) then
- set theMouseLine to (mouseV() - gFieldTop) / gchaptertextheight
- if (theMouseLine <= glessonnumber) and (theMouseLine > 0) then
- if gNewEnter then
- blitPictInitScreen(theBlitPict, getAt(grectlist, 3))
- blitPictDrawObj(theBlitPict, the srcrect of theBlitPict, the POINTER of objCapturePict, the srcrect of objCapturePict, "copy")
- blitPictDispose(theBlitPict)
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- set the visible of sprite 8 to 1
- updateStage()
- showpreview(theMouseLine)
- set gNewEnter to 0
- else
- if gAfterClick then
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- updateStage()
- else
- set the locV of sprite 8 to (theMouseLine * gchaptertextheight) + gFieldTop
- updateStage()
- showpreview(theMouseLine)
- end if
- end if
- end if
- else
- if gNewEnter = 0 then
- if gAfterClick then
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- set gAfterClick to 0
- else
- blitPictDrawScreen(objCapturePict, the srcrect of objCapturePict, getAt(grectlist, 3), "copy", 0, 0)
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- end if
- end if
- end if
- else
- if gAfterClick then
- set the visible of sprite 8 to 0
- updateStage()
- set gNewEnter to 1
- set gAfterClick to 0
- end if
- if QTGetCurrtime(theQTMovie) < gMoovOutTime then
- QTIdle(theQTMovie)
- else
- callbackplay()
- end if
- end if
- end
-